QT       += core gui

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

CONFIG += c++11

# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
    AACEncodeThread.cpp \
    AudioPlayThread.cpp \
    AudioRecordThread.cpp \
    DeviceTool.cpp \
    FFString.cpp \
    FFThread.cpp \
    FilePicker.cpp \
    MediaAnalysis.cpp \
    VideoEncodeThread.cpp \
    VideoPlayThread.cpp \
    VideoRecordThread.cpp \
    VideoRecordTool.cpp \
    main.cpp \
    MainWindow.cpp

HEADERS += \
    AACEncodeThread.h \
    AudioPlayThread.h \
    AudioRecordThread.h \
    DeviceTool.h \
    FFString.h \
    FFThread.h \
    FilePicker.h \
    MainWindow.h \
    MediaAnalysis.h \
    VideoEncodeThread.h \
    VideoPlayThread.h \
    VideoRecordThread.h \
    VideoRecordTool.h

FORMS += \
    MainWindow.ui

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

macx {
    QMAKE_INFO_PLIST = "mac/Info.plist"
}

# 设置头文件路径
INCLUDEPATH += /opt/homebrew/Cellar/ffmpeg/7.1_2/include

# 设置库文件路径
LIBS += -L/opt/homebrew/Cellar/ffmpeg/7.1_2/lib \
        -lavcodec \
        -lavdevice \
        -lavfilter \
        -lavformat \
        -lavutil \
        -lpostproc \
        -lswscale \
        -lswresample

# 设置头文件路径
INCLUDEPATH += /opt/homebrew/Cellar/sdl2/2.30.8/include

# 设置库文件路径
LIBS += -L/opt/homebrew/Cellar/sdl2/2.30.8/lib \
        -lSDL2
